﻿Imports System
Imports System.Collections.Generic
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Data
Imports System.Windows.Input
Imports System.Windows.Media
Imports System.Windows.Media.Animation
Imports System.Windows.Media.Imaging
Imports System.Windows.Navigation
Imports System.Windows.Shapes
Imports System.Text.RegularExpressions

Partial Public Class Anexa11View
    Public Sub New()
        MyBase.New()

        Me.InitializeComponent()

        ' Insert code required on object creation below this point.
    End Sub

    Private Sub RadGridView_AutoGeneratingColumn(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs)
        'TODO: Add event handler implementation here.
        'If e.Column.Header = "Polyline" Then
        '    e.Cancel = True
        'End If
        If e.ItemPropertyInfo.Name = "Polyline" Or e.ItemPropertyInfo.Name = "CategorieFolosinta" Then
            e.Cancel = True
        End If
        Regex.Replace(e.Column.Header, "([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))", "$1 ")

    End Sub

    Private Sub RadGridView_AutoGeneratingColumn_1(ByVal sender As Object, ByVal e As Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs)
        'TODO: Add event handler implementation here.
        If e.ItemPropertyInfo.Name = "Polyline" Then
            e.Cancel = True
        End If
        Regex.Replace(e.Column.Header, "([a-z](?=[A-Z])|[A-Z](?=[A-Z][a-z]))", "$1 ")
    End Sub

    Private Sub RadGridView_AutoGeneratingColumn_2(ByVal sender as Object, ByVal e as Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs)
        'TODO: Add event handler implementation here.
        If e.ItemPropertyInfo.Name.ToLower <> "nume" Then
            e.Cancel = True
        End If
    End Sub

End Class
